<div class="sms_popup_cont">
    <h2><?php echo __('Sending SMS');?></h2>
    
    <?php if($send_succ){?>
        <div class="send_sms_success">
                <?php echo __('SMS sent successfully')?>
        </div>
    <?php }else{ ?>
            <?php if(!$user_count){?>
            <div class="no_data">
                    <?php echo __('There are no result users to send')?>
            </div>            
        <?php }else{ ?>
            <form action="<?php echo url_for('teacher/sendCustomSms'); ?>" method="post">        
                <?php foreach($form as $k => $field){
                      if($field->getWidget() instanceof sfWidgetFormInputHidden) continue; ?>
                        <div class="sms_form_label">
                            <?php echo $field->renderLabel();?>
                        </div>
                        <div class="sms_from_input content">
                            <?php echo $field->render(); ?>
                            <div class="clear"></div>
                            <?php echo $field->renderError(); ?>
                        </div>
                <?php }?>
                <div class="clear"></div>
                <?php echo $form->renderHiddenFields(); ?>
                <div class="note">
                     <?php printf('** '.__('message will be sent to %d users'), $user_count)?>
                </div>                
                <input type="submit" value="<?php echo __('Send')?>" />
            </form>
        <?php } ?>
    <?php } ?>
</div>